import request from "@/utiles/request";
//获取菜单列表
export const getMenuListAPI = (pageNo = 1, pageSize = 5) =>
  request.get(`/menu/getMenuList?pageNo=${pageNo}&pageSize=${pageSize}`);
//添加菜单
export const addMenuAPI = (data)=>request.post('/menu/addMenu',data)
//修改菜单
export const updateMenuAPI = (id,data)=> request.put(`/menu/updateMenu?id=${id}`,data)
//获取菜单详情
export const getMenuInfoAPI = (id)=>request.get(`/menu/getMenuDetail?id=${id}`)
//删除菜单
export const deleteMenuAPI = (id)=>request.delete(`/menu/deleteMenu?id=${id}`)